package com.pengtu.gsj.controller.checker;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;

import com.pengtu.gsj.controller.base.CheckTableBaseController;
import com.pengtu.gsj.entity.app.Sysmenu;
import com.pengtu.gsj.entity.check.CheckProject;

@Controller
@RequestMapping("countryTable")
public class CountryTableController extends CheckTableBaseController{
	
	@RequestMapping("show")
	public String showCheckContent(@ModelAttribute CheckProject checkProject, Model model) {
		model.addAttribute("checkList", checkProject.getTableSysmenu());
		Sysmenu sysmenu = checkProject.getTableSysmenu().get(0);
		System.out.println("href:"+sysmenu.getCheckHref());
		System.out.println("href:"+sysmenu.getName());
		System.out.println("menuId:"+sysmenu.getId());
		System.out.println("leftChild:"+sysmenu.getParent().getId());
		System.out.println("left:"+sysmenu.getParent().getParent().getId());
		return "check/country/list";
	}
	
	@RequestMapping("repair")
	public String roadRepair() {
		return "check/common";
	}
	
}
